package com.zhoukx.proxy.staticproxy;

/**
 *  静态代理
 */
public class TeacherProxy implements ITeacherDao {




   private TeacherDao teacherDao ;

    public TeacherProxy(TeacherDao teacherDao) {
        this.teacherDao = teacherDao;
    }

    @Override
    public void teach() {
        System.out.println("代理开始.......");
        teacherDao.teach();
        System.out.println("代理结束........");
    }
}
